import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/CampusBinhai.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/CampusChashan',
    name: 'CampusChashan',
    component: function () {
      return import(/* webpackChunkName: "about" */ '../views/CampusChashan.vue')
    },
    children: [
      {
        path: '/CampusChashan5',
        name: 'CampusChashan5',
        component: () => import('../views/CampusChashan5.vue')
      },
      {
        path: '/CampusChashan6',
        name: 'CampusChashan6',
        component: () => import('../views/CampusChashan6.vue')
      },
      {
        path: '/CampusChashan7',
        name: 'CampusChashan7',
        component: () => import('../views/CampusChashan7.vue')
      }
    ]
  },
  {
    path: '/CampusYueqing',
    name: 'Yueqing',
    component: () => import('../views/CampusYueqing.vue')
   
  },
  {
    path: '/StudentSystem',
    name: 'StudentSystem',
    component: () => import('../views/StudentSystem.vue')
   
  }
]

const router = new VueRouter({
  routes
})

export default router
